<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"  %>
<%
	response.setHeader("X-Frame-Options","SAMEORIGIN");
	/* 参数 */
	String type = request.getParameter("type");/*类型 1是许可  2是处罚 */
	/* end */
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<html>
<head>
	<jsp:include page="../../public/public.jsp"/>
</head>
<script type="text/javascript">
	var typeid = <%=type %>;
</script>
<script type="text/javascript" src="../../them/js/publicity.js"></script>
<body>
<!-- 部门信息 -->

<div style="height: 100%;width: 50%;float: left;margin-left: 20%">
	<div style="height: 1%"></div>
	<div style="height: 10%;text-align: center;">
		<a id="btn" onclick="departmentAddUpdat('add')"
			href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add'">添加</a>
			<span style="margin: 0 5%">所属部门</span> 
		<a id="updateButton" onclick="departmentAddUpdat('edit')" 
			href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit'">修改</a> 
		
	</div>
	
	<table id="dgDepartment" style="width:100%;height:90%"></table>
</div>

<!-- 添加部门信息弹窗 -->
<div id="departmentWinId" class="easyui-window" align="center"> 
			<form id="addForm" method="post" >
		  		<table align="center" style="margin-top:20px">
		    		<tr style="height: 30px" id="codeId">
		    			<td>部门编码:</td>
		    			<td>
		    			<input id="departmentCodeId"  class="easyui-textbox" data-options="width:150,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>部门名称:</td>
		    			<td>
		    			<input id="departmentNameId"  class="easyui-textbox" data-options="width:150,required:true"/>
		    			</td>
		    		</tr>
		    		
		   		</table>
			</form>
		</div>  
		
<script type="text/javascript">
if(typeid==3 || typeid==4 || typeid==5){
	$("#codeId").hide();
	$("#departmentCodeId").attr("data-options","");
}
</script>
<!-- 添加许可公告信息弹窗 -->
<div id="permissionWinId" class="easyui-window" style="display: none;"> 
			 <form id="permissionForm" method="post">
		  		<table align="center" style="margin-top:20px;">
		    		<tr style="height: 30px">
		    			<td>申报号:</td>
		    			<td>
		    			<input id="declareNumId"  class="easyui-textbox" data-options="width:250,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>申报名称:</td>
		    			<td>
		    			<input id="declarationNameId"  class="easyui-textbox" data-options="width:250,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>事项名称:</td>
		    			<td>
		    			<input id="itemNameId"  class="easyui-textbox" data-options="width:250,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>办证类型:</td>
		    			<td>
		    			<input id="doTypeId"  class="easyui-textbox" data-options="width:250,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>申报者名称:</td>
		    			<td>
		    			<input id="declareNameId"  class="easyui-textbox" data-options="width:250,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>申报者证件类型:</td>
		    			<td>
		    			<input id="certificateTypeId"  class="easyui-textbox" data-options="width:250,required:false"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>申报者证件号码:</td>
		    			<td>
		    			<input id="certificateNumId"  class="easyui-textbox" data-options="width:250,required:false"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>法人代表:</td>
		    			<td>
		    			<input id="legalRepresentativeId"  class="easyui-textbox" data-options="width:250,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>许可日期:</td>
		    			<td>
		    			<input id="permissionDateId" type="text"/> 
		    			
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>许可机关:</td>
		    			<td>
		    			<input id="licensingAuthorityId" name="dept" data-options="width:250,required:true,editable:false"> 
		    			
		    			</td>
		    		</tr>
		   		</table>
			</form>
</div>
<!-- 添加或修改处罚公告信息弹窗 -->
<div id="punishmentWinId" class="easyui-window" style="display: none;"> 
			 <form id="punishmentForm" method="post">
		  		<table align="center" style="margin-top:20px;">
		    		<tr style="height: 30px">
		    			<td>行政处罚决定书文号:</td>
		    			<td>
		    			<input id="punishmentNumId"  class="easyui-textbox" data-options="width:250,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>案件名称:</td>
		    			<td>
		    			<input id="caseNameId"  class="easyui-textbox" data-options="width:250,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>行政相对人名称:</td>
		    			<td>
		    			<input id="administrativeNameId"  class="easyui-textbox" data-options="width:250,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>行政相对人证件类型:</td>
		    			<td>
		    			<input id="administrativeCertificateTypeId"  class="easyui-textbox" data-options="width:250,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>行政相对人证件号码:</td>
		    			<td>
		    			<input id="administrativeCertificateNumId"  class="easyui-textbox" data-options="width:250,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>处罚日期:</td>
		    			<td>
		    			<input id="punishmentDateStrId" type="text"/> 
		    			
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>处罚机关:</td>
		    			<td>
		    			<input id="punishmentOrganId" name="dept" data-options="width:250,required:true,editable:false"> 
		    			
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>处罚决定书或摘要:</td>
		    			<td>
		    			<input id="punishmentTextId"  class="easyui-textbox" data-options="width:250,required:true"/>
		    			</td>
		    		</tr>
		   		</table>
			</form>
</div>
<!-- 展示信息 -->
<!-- <div style="height: 100%;width: 65%;float: left;">
	<div style="height: 1%"></div>
	<div style="height: 10%;text-align: center;">
		<a id="permissionAddId"   
			href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add'">添加</a>
			<span style="margin: 0 5%" id="publicityHtmlId"></span> 
		<a id="permissionUpdateId"  
			href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit'">修改</a>
		
	</div>
	
	<table id="dg" style="width:100%;height:90%"></table>
</div> -->

</body>
</html>
